Use backward compatible method to read stderr, stdout