fix cli_spec to work with Tempfile change