fix the create_irods_urls function

fix writing the irodsenv file