Preserve file permissions on copy.
Fixed scoping issue.
Merge pull request #4 from blyork/master

Preserves File Permissions During Copy