Don't overwrite the file's mode completely.

Just set the executable bit for user, group, and other.
Merge pull request #53 from mrhmouse/master

Don't overwrite the file's mode completely.