color analyzer now handles any type of directory name for subdirectories