A souped up version of readProcessWithErrorCode that uses lazy bytestrings and allows setting environment.