Fixed bug in path get ancestor. (On unix have to stop if get to '/').
Authored by: dwarren 2014-03-07
Parent: [r7926]
Child: [r7928]