Improve travis release version detection.
Improve travis release version detection.

Copied from change by adriancole in
https://github.com/opentracing/opentracing-java/pull/164

talsma-ict/umldoclet,talsma-ict/umldoclet