[MATLAB] stripped directory info when calling wrapper in .m files

when doing out-of-source builds, the .m files had full path-info
embedded when calling the wrapper mex, but that doesn't work in matlab.
(problem found by Ian Bell)
Merge branch 'matlab' into KTFIX