Adding examples and possible failures for getcwd.

For both window and unix platforms.