fix incorrect parameters for getopt in big_query.c
\r\n check for dos format text
dos and linux format extra line tolerant