rework path lookup
Merge pull request #2 from mozilla-b2g/rework-path-lookup

rework path lookup