Added stdout and stderr to grunt build hook

Added standard input, output and basic error handling to the grunt build hook