Made a change to detect the OS when setting the path for ImageMagick