Fixed failing build shell script

Fixed failing build shell script and made it more robust. Set notifications per Spree engine and added comments.