test for new head/tail syntax support #74

Add head_n and tail_n utility functions that check the system head/tail
for support for the -n 1 syntax. If there is no support, then these
functions use the old -1 syntax.

See ef94912 , this is in case there are users of this script on *very*
old systems.