Bash Test If Command Failed