getXBMCVersion: handle pre-release versions

Versions like 13.2ALPHA1 cause the code to explode currently. This commit will truncate the above to 13.2.