img: Fixing os & version splitting
img: Fixing os & version splitting

The os name can be composed of "-" which was breaking the current code.

enovance/edeploy,enovance/edeploy,lebauce/edeploy,enovance/edeploy,enovance/edeploy,lebauce/edeploy,redhat-cip/edeploy,redhat-cip/edeploy,lebauce/edeploy,lebauce/edeploy,redhat-cip/edeploy,redhat-cip/edeploy