Rename submitted files when a new codename is generated

Should resolve #557