Fix bashisms in fetch_image.sh script