Make bundler.js ignore node_modules and Gruntfile.js

This pull request makes bundler ignore `node_modules` and `Gruntfile.js` folder from tar.gz bundle.
Also it fixes app crashes when project root contain `Gruntfile.js`

Fix for issue #1454