s3: add m4 macro to check if stderr is empty or not