Enhancing & simplfying the directory detect logic