Preserve file mode on copy

Fix #6