FIX: Extract version from toolbox/matlab/general

The previous version of the code retrieved matlab version from its path,
which is logically not very reliable. We changed that to reading the
.VERSION file, which turned out not to work for all versions of matlab.
Now we're extracting the version from toolbox/matlab/general/Contents.m,
which seems to be the most reliable way up to now.