Improve Xcode auto-detection
Improve Xcode auto-detection

This allows to set meaningful names for Xcodes with '.' in it's name,
e.g. for Xcode-1.2.3.app Qbs will create xcode-1_2_3 profile.

Change-Id: I9ca30eefd28454c4f8e4629c297618e0d550225e
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@qt.io>

qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs