Added check return code for shallow_flash.sh

fix #215
return code == 1 seems like a specific meaning
http://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html