Retain file stats when copying

This copies modes as well as atime/mtime when copying a file.

/ref #235