PreBuild: Only flatten after installing modules

Fixes #428
JSHint: Remove space from backup folder

This was messing up escaping in the VSIX
Merge pull request #429 from SLaks/misc-fixes

Improve build time