Template name detection error for installation in subdirectories fixed