Renamed file resource to use loadfile_name if provided.