Are you trying to program this from a EmonSD based setup?
The avrdude
command is redirected if you are. Took me a while to unpick the redirected symlinks.
This was how I programmed an EmonTX directly from an EmonSD based Pi.
Not sure if it will help