fix Firefox OS detection logic