Added check return code for shallow_flash.sh

fix #215
Good idea!! thx =)