Fixup gruntfile.js and inject tilde-versions into package.json