Move 'rom_filename' assignment to a more natural location.