// removes trailing slashes, uses make_preferred
void standardizePath(bfs::path& inPath)
{
    string pathStr = inPath.string();

    inPath.make_preferred();
    if (inPath.filename() == ".") inPath.remove_filename();
}