create_image.sh: fix condition handling.