Try to fix problem with libcurl under Mac

Under Mac (and most likely under Linux), calling git pull using
system() will indirectly call curl. But for some reason such call to
curl will bind to the version of libcurl shipped with MATLAB. The
new version of submodule_update tries to fix this problem. A similar
workaround for Linux should be done!