Update bash script, and class_exists test in Imagick