Fix preserve permissions for new files