build: Use -n option to head command

Make the call to `head' equivalent to the one to `tail'.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>