updateimage.sh is now platform-independent