Fix version pinning

This is a work in progress to get the version pinning code working.  Being a PR will let travis test the code, so I expect this to stay open until the tests are passing and the code is working properly.