Test if command exists