Fixed firmware build on Mac OS / *BSD

Other implementations of head don't support long options like GNU/Linux
does.
Merge pull request #12 from HexRC/mac

Fixed firmware build on Mac OS / *BSD