build: Use -n option to head command