Fix create_tmp_file: Do not chown recursively (it is a file)