Optimize updateimage.sh on linux
On Linux, the mount option "-o loop" removes the requirement for losetup and losetup -d