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

This should fix windows vs. *nix compatibility problems.  Partially fixes Issue #57.