Added a double check for Node modules and extended the check in should m...

...ock #106
This is not the best fix but it solves the problem for node modules.
I would appreciate some feedback on ways to improve it.
Need to write the tests still.
You leaked a new line here, remove it with the next commit.