search: also ignore directories if searching relative to the workspace