tests: init.sh: use "sed 1q" in place of "head -1"