Fixed Safari not being properly detected.
Merge branch 'fix-safari-detection' into npm