Fix directory navigation for commands
@@ -16,7 +16,7 @@ cp {AUTHORS,COPYING,COPYING.LESSER,LICENSE,README.md} $SP_DIR/$PKG_NAME
# Do the build in place in site-packages
cd $SP_DIR/$PKG_NAME
-for lib_dir in ./*/; do (gpi_make --all --ignore-gpirc -r 2); done
+for LIB_DIR in ./*/; do (cd "$LIB_DIR" && gpi_make --all --ignore-gpirc -r 2); done
# drop a version file with parseable info
VERSION_FPATH=$SP_DIR/$PKG_NAME/VERSION
