Adjust travis-specific version parsing to accept pre-releases.