Update ui.py

to recognize windows style file system