Iss 464

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