Fixed target directory for copy commands due to a change in variable names.