improved Find_project_root()