REVIEW: NEXUS-5834 refine build number service impl

https://issues.sonatype.org/browse/NEXUS-5834