Index: ../trunk-jpl/packagers/macosx/install.sh
===================================================================
--- ../trunk-jpl/packagers/macosx/install.sh	(revision 18419)
+++ ../trunk-jpl/packagers/macosx/install.sh	(revision 18420)
@@ -32,8 +32,10 @@
 
 # Install Externalpackages
 # {{{
-cd $ISSM_DIR/externalpackages
 
+#Files source environment to make sure installed packages are in PATH
+source $ISSM_DIR/etc/environment.sh
+
 #number of packages: 
 NUMPACKAGES=$(($(echo $EXTERNALPACKAGES | wc -w )/2))
 
@@ -44,7 +46,7 @@
 	PACKAGENAME=$(echo $EXTERNALPACKAGES | cut -d " " -f $NUM1-$NUM1)
 	PACKAGEINST=$(echo $EXTERNALPACKAGES | cut -d " " -f $NUM2-$NUM2)
 
-	cd $PACKAGENAME
+	cd $ISSM_DIR/externalpackages$PACKAGENAME
 
 	if [[ $PACKAGEINST -nt  install ]]; then 
 		#go ahead and reinstall. 
@@ -87,7 +89,6 @@
 	fi
 	cd ..
 done
-source $ISSM_DIR/etc/environment.sh
 # }}}
 
 # Compile ISSM
