update whoami syntax for windows
Merge pull request #399 from Heather/fx1
update deprecated parts of sync