Also check file size when determining if file is unchanged (fixes #1058)