Preserve file mode when copying to the build root
Merge pull request #8 from jamesboehmer/copywithperm

Preserve file mode when copying to the build root.
It's is important to note that filemode can still be explicitly set in configuration, but if it is not provided the original one will be used.