Updated MkDir in filefunc to work with windows.