Fix launch issues caused by adding 'require magit