Fixed magit for OSX