Fixed firmware build on Mac OS / *BSD

Quick fix for Mac OS compatibility. Other implementations of head don't support long options like GNU/Linux
does.

Also, it might be nice to document where to find the pycrc dependency or possibly reference it as a submodule. I found git@github.com:tpircher/pycrc.git which seems to fit the bill.