Fix directory search for unix systems