Ensures that path is returned in #to_file method