Preserve file permissions
Just ignore a failed stat
Merge pull request #7 from Lithopsian/master

Preserve file permissions from the original file