the scala script should check for the directory called project, not file