changed setdefinitions from courseDirs to coursePaths