Fix one-key script install failed in osx