Updated the build-script to be more solid and give actual feedback.