SERVER-8391 made a library for validateIndexKey()
SERVER-8391 upgradeCheck() function added to shell