Make doc version checking more robust
Make doc version checking more robust

Otherwise, 1.0.0.CR1 will match 1.0.0.CR1-SNAPSHOT, and the version list
won't be properly updated.

wildfly-swarm/wildfly-swarm-bom,wildfly-swarm/wildfly-swarm-bom