search dir & windows compatibility issue