add working avrdude.conf for linux. Improve code