Some more changes to make the graphics mode detection work better.