Check curl only when the command is run.