You know, you could just stop wasting your time with all of that b0rken software and instead just auto-rotate (lossless) the JPG image data with any of a handful of free, open source programs.

Cheers