patching nearestPath to first check if metadata exists
Merge pull request #366 from prose/metadata

patching nearestPath to first check if metadata exists