Testing latest pari + WASM + node.js... and it works?! Wow.
if (head -n 1 < /dev/null >/dev/null 2>&1); then head='head -n' else head='head -' fi