branch dev: fixed minor bug in hooks.py

- fixed a bug where the file extension was getting borked when a hook
  was run through JIRA templating.