detect root directory in path2key
Merge pull request #100 from pantheon-systems/walk-statcache-pathparent

detect root directory in path2key