make shell scripts pipe aware