install-nix-from-closure: remove bashisms

there's a good chance that this script will be run with busybox or dash,
so remove bashisms