Simplify project root detection functions