allow stdin and stdout to process .gz files in apps.base.sh()