Fix build script to give error messages when build fails.
Merge branch 'master' of https://github.com/andyrimmer/Platypus