Fixed getOperatingSystemPath() to work with all versions of Windows.