diff --git a/build_pdata.sh b/build_pdata.sh
index 7ca869438b4de8b1c3ff797abc0ec9377c6c487c..e187940da3a848933dbc4d2c413c8b3d534a14aa 100644
--- a/build_pdata.sh
+++ b/build_pdata.sh
@@ -64,8 +64,9 @@ then
  source ~/.bashrc
  sh ./autogen.sh
  module load gcc/4.9.2
- ./install -s
+ ./install -s -c "--prefix=/home/jenkins/openfpm_install"
  make
+ make install
 
  if [ $? -ne 0 ]; then exit 1 ; fi
  mpirun -np 2 ./src/pdata
diff --git a/example/Grid/Makefile b/example/Grid/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..63062d5be263b695c74fa60c6542aeed2fbeda88
--- /dev/null
+++ b/example/Grid/Makefile
@@ -0,0 +1,11 @@
+SUBDIRS := $(wildcard */.)
+
+all clean:
+	for dir in $(SUBDIRS); do \
+          $(MAKE) -C $$dir $@; \
+        done
+
+clean: $(SUBDIRS)
+
+.PHONY: all clean $(SUBDIRS)
+
diff --git a/example/Vector/Makefile b/example/Vector/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..63062d5be263b695c74fa60c6542aeed2fbeda88
--- /dev/null
+++ b/example/Vector/Makefile
@@ -0,0 +1,11 @@
+SUBDIRS := $(wildcard */.)
+
+all clean:
+	for dir in $(SUBDIRS); do \
+          $(MAKE) -C $$dir $@; \
+        done
+
+clean: $(SUBDIRS)
+
+.PHONY: all clean $(SUBDIRS)
+
diff --git a/script/py/pack_examples.py b/script/py/pack_examples.py
index d482a055717a640f558d5864a50e46d3173f9a75..4dee6b548d63bbb8006cbd682f73a94f2f3da7a3 100644
--- a/script/py/pack_examples.py
+++ b/script/py/pack_examples.py
@@ -90,4 +90,4 @@ class pack_example:
             self.add_r(dir+os.sep+example_dir)
 
         # make an archive
-        shutil.make_archive(file,"bztar",self.base_dir)
+        shutil.make_archive(file,"bztar",self.temporary)