Use Jenkins build number as part of version

add fallback to 0 if not under a Jenkins build