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.