Fix stderr redirection for npm, bower and grunt output.
Mask npm rebuild output unless it fails.
Place .heroku/node-version back in $build_dir.

It had previously been moved to $frontend_dir.