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

Added the ability to preserve file mode on method `actions.template`

Fixes #464