Ensure that when using SetupDB the template Dir is created

When using the option SetupDB we should automatically create the directory that will hold the template scripts as well as the generate sql scripts.