fixed problem with shellscript copying to wrong directory