fixed platform name detection for iphone safari and uiwebview