Added env var for templates location, added code to make use of it.