Fix the correct setting for the template dirs