Be smarter about rebuilding on version number changes