Update util.py

prevent loading of pwd module on Windows systems