Use boost::filesystem::path to get the filename from a path