fix getTemplatesForBase

not working with themes in subdirectories