Better ios detection code

Another event.path check