Change check_output to use universal newlines to fix LF != CRLF