Use os.FileMode when comparing file stats