added support for custom basepath for .bin folder

Support for nested node_modules