added code to handle git build version issue which appends a
dash and other stuff after the normal version string. Travis builds
where failing with an error.
added code to test new string split