Handle dots in directory names