fixes for windows

using os.sep breaks the simple CGI server. (this however breaks thumbnails since that splits based off os.sep)