Updating patch version to 3.1.8. [skip ci]