fix create_irods_urls (open tmp file correctly)