We need to revisit the commands package re globals and tests, but this should fix the init order of flags and languages. Fixes #4589