Don’t generate docs when using metadata option
Make relativizing path more robust
Trust the main file path in the package.json
Be defensive about this 

@gjtorikian not sure whats going on in this case…