Bash Check If Command Exists In Sql