Make sure to checkout latest release (ie. v0.3.1)

This way we avoid build errors sometimes present in the master branch.