alternate dir set and change to targetDir prior compressing