scripts: ubinize-image.sh: fix on POSIX shell, allow custom images