check that we have a project for getting the directory