mercuryhdr.sh: using Posix compatible expression