fixed weird environment-dependent bug related to using baseDir instead of targetDir in couple of tasks