fix, PEBKAC, use less bashisms to determine matlab root path, source `matlab -e's environment

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'bld/chn' into next

* bld/chn:
  fix, PEBKAC, use less bashisms to determine matlab root path, source `matlab -e's environment
Merge branch 'next'

* next:
  fix, PEBKAC, use less bashisms to determine matlab root path, source `matlab -e's environment