Fixed BlackBerry OS detection

There are a lot of bugs/misspelling in xml files. Please see commit for more details.