Copy the mode (permissions) for configured files.

Small bugfix for the last pull request.

This makes the executables executable again.