Make DSO more RAII-friendly
Switch searchDirectory to boost::regex