Added windows support to file manager.

Added a windows clone of dirent.h and made some conditional changes to
the current working directory code.