fix navigator.platform for non-Win32 systems

platform check fix for non-Windows systems