Preserve permissions when copying a new definition from template

In most cases permissions shouldn't matter, but in the case of #481 we also copy over a shell script to be executed to prepare the ISO, so it would be useful if its executability is preserved.