Ensuring path_to_spec_file is a string.