[Fix #230] Fix a regression in project-root detection