Adding the ability to change template directory