modify https://github.com/maddox/magick-installer/pull/42