made the deploy script smarter. doesn't go to next step if previous compilation failed