Fixed common.projects to correctly determine the base project dir (if there is one).