Fix paths to reflect structure of Debian packaging
--- a/mex/sources/build_matlab.m
+++ b/mex/sources/build_matlab.m
@@ -17,7 +17,7 @@
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-addpath '../../matlab'; % For matlab_ver_less_than
+addpath '/usr/share/dynare/matlab'; % For matlab_ver_less_than
 
 MATLAB_PATH = matlabroot;
 
@@ -66,7 +66,7 @@
     COMPILE_OPTIONS = [ COMPILE_OPTIONS ' -largeArrayDims' ];
 end
 
-OUTPUT_DIR = '../matlab';
+OUTPUT_DIR = '/usr/lib/dynare/mex/matlab';
 
 disp(' ')
 if exist(OUTPUT_DIR,'dir')
@@ -219,3 +219,5 @@
        BLAS_PATH ' ' LAPACK_PATH]);
 
 rmdir(LIBDYNAREPP_DIR, 's')
+
+exit
