fix obtaining version string

The whole version getting solution is interesting, but very fragile.

Fixes WF:

```23:57:31,886 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version (unknown)```