Copy the mode (permissions) for configured files.

This makes the executables executable again.
Merge pull request #670 from jansenm/mjansen/small-bugfix

Copy the mode (permissions) for configured files.