fix for working directory problems

there were problems with running ndm from `~/node_modules/.bin/ndm`