Ya, those are a real PITA. It seems every dryer is different and every builder puts them in the wall in a different direction. Get a duct that is very flexible and don't use more than you have too. It will be alot of experimenting to get the easiest flowing setup. You may need a loop, you may be able to get by with a couple 90* bends, or you might get real lucky and have the duct sqeeze itself down (accordian style) into a perfect staight line.
Move the dryer back a couple inches at a time and then check the duct.
I don't know why manufacturers think we all have these huge laundry rooms, that we have enuogh space to leave it pulled away from the wall 2 feet! Everyone I know has their dryer pushed up against the wall as far as they can.