Return the exit code in ScriptExecutor

Solving issue #987

Now the exit code from the script in project.json need to be zero to ensure a successful build/pack/restore.
Actually the error message is not quite correct. It totally succeeded in running the prebuild script. It's that the prebuild script failed. Change the error message to say what failed?