Update misc.py

conditional for assume_winpaths override.