fixed grep in directory search