Replace --lines= with -n to fix tail on mac os.

Fixes #1407
/cc crhym3