support basedir as an option to node resolve sync
more support and remove console.error
fixed code style
Merge pull request #50 from securingsincity/master

Upgraded resolve and added support for basedir