mail.sh: allow working without an shlib.sh