Only import pwd on Linux because it is not available on Windows.