Add optional perms argument to Filename.open_temp_file.