Corrections for more robust check project folder' is an ancestor of the root project folder