Remove unnecessary baseDir variables.