--- a/PKG_ADD
+++ b/PKG_ADD
@@ -1,10 +1,14 @@
 dirlist = {"utl","asm","tst","nls","prs","sbn"};
 dir     = fileparts (mfilename ("fullpath"));
 
+# set paths for octave 3.2 and ocs-0.1.1, so that the package can cope with the
+# fact that the .oct files and the .m files are not in the same directory
+dir = "/usr/share/octave/packages/3.2/ocs-0.1.1/";
+
 if (! exist (fullfile (dir, "inst"), "dir"))      
   ## Run this if the package is installed      
   for ii=1:length(dirlist)
-    addpath (fullfile(dir,"..",dirlist{ii}),"-end")
+    addpath (fullfile(dir,dirlist{ii}),"-end")
   endfor
 else
   ## Run this if we are testing the package is installed without installation
@@ -13,4 +17,4 @@
   endfor
 endif
 
-clear dirlist dir
\ No newline at end of file
+clear dirlist dir
--- a/PKG_DEL
+++ b/PKG_DEL
@@ -1,6 +1,9 @@
 dirlist        = {"utl","asm","tst","nls","prs","sbn"};
 [basename,dir] = fileparts(fileparts (mfilename ("fullpath")));
 
+## Remove the changed path added in PKG_ADD
+basename = "/usr/share/octave/packages/3.2/ocs-0.1.1/";
+
 for ii=1:length(dirlist)
   if (! exist (fullfile (basename, "inst"), "dir"))
     ## Run this if the package is installed
@@ -9,4 +12,4 @@
     ## Run this if we are testing the package is installed without installation
     rmpath ( [ fileparts( mfilename("fullpath")) "/inst/" dirlist{ii}])
   end
-end
\ No newline at end of file
+end
