Fix infinite recursion bug in the "_find_project_root" function on Windows