std::string was be be set with NULL char*. Also added support for stripping the filename from its original path, inside the osgDB::findFile function.