fix navigator.platform

platform check fix for non-Windows systems