Added cwd.c (working for Windows)