Added function to scan for folder names in given directory