Move file update comparison to helpers