Arduino to ATMega328-MMH

Not knowing much about the inner workings of the IDE, but if you can get in there to add in the -F, then can you instead insert the correct chip into the Avrdude call?

It might be easier to work direct with Avrdude from the command line.