Removed deprecated code and made project_root a little more generic.