Fix broken shim design

Shims were not properly being reset by invocations of the global or refresh command. Fixed the commands to compute the version to use based on the current_version file.