Don't overwrite the file's mode completely.

Just set the executable bit for user, group, and other.