Implement Grain version compatibility checking.