Merge branch 'next'

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