tests: allow the mako module directory to be specified

Make it so mako can write out its compiled templates which will allow
coverage to run successfully after nose has produced a coverage report.
Merge pull request #8 from damoxc/fix-up-tests

tests: allow the mako module directory to be specified