Test if subcommand is executable before selecting or listing it.