Set file id to be returned correctly in scan_file to fix problem with not saving timestamps