var hasSubFolder    = tmpls.indexOf(dir.split(path.sep).splice(-2)[ 0 ]) > -1