made matlab executable cross-os compatible