Move command line analysis down a bit
This is necessary so that the list of available video modes is populated, making the -mode parameter work again.