fix head param to be compatible to OS X

On OS X (10.8.5) head doesn't know the parameter --lines. I guess calling "head -1" works on other platforms also, as it was already used like that on line 136.