Index: ../trunk-jpl/packagers/macosx/package.sh
===================================================================
--- ../trunk-jpl/packagers/macosx/package.sh	(revision 18426)
+++ ../trunk-jpl/packagers/macosx/package.sh	(revision 18427)
@@ -14,9 +14,9 @@
 
 #Package using the Package Maker from OSX, driven by command line.
 tarball_name='issm-mac-static_build.tar.gz'
-cd $ISSM_DIR
 
 echo "Cleanup first" 
+cd $ISSM_DIR
 rm $tarball_name
 
 echo "modify generic" 
@@ -24,5 +24,6 @@
 cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m
 
 echo "Creating tarball: ${tarball_name}"
+cd $ISSM_DIR
 tar -czf $tarball_name ./bin ./lib ./test ./examples externalpackages/mpich/install/bin/mpiexec externalpackages/mpich/install/bin/hydra_pmi_proxy
 ls
