added handing for if project.dir is not supplied