Ensure matlab is launched in correct directory.

Signed-off-by: Valentin Plugaru <valentin.plugaru@gmail.com>