added windows functionality to cfileutil.py