Minor Adjustment to version selection code.