bash: remove unnecessary conditions when checking for subcommands