Added test comparing file modes after copying an executable file, relates to #464

Preserve file mode on actions.template, fixes #464
Merge pull request #474 from ruyadorno/iss-464

Added the ability to preserve file mode on method actions.template