Flip logic of cmd_exists.