SWITCHYARD-1896 add proper error handling around version discovery

https://issues.jboss.org/browse/SWITCHYARD-1896