avrdude to load bootloader and a program at the same time

You can merge the .hex files to do that.

Just remove the ":00000001FF" line of your main program's .hex file and append the bootloader code.