Search the base path of the file containing a reference
Moved path.resolve() call outside of loop
Ensure full base path
Merge pull request #46 from circlingthesun/regression-fix

Search the base path of the file containing a reference