Ensure that the original command is valid.