another occasion of dirName to baseDir