config/filesystem: fix per-fstype discard mount options.
scripts/globals: add check_commands: a wrapper for checking presence of commands.
scripts/globals: set pipefail option (experimentally).
packages/pkgbuild: check for used binaries.