Reorder the flag checks so version can be shown