Add code example to std::os::getenv for unix.
Adding examples and possible failures for getcwd.

For both window and unix platforms.
Improve documentation on std::os::env.
auto merge of #14641 : darnuria/rust/add_documentation_to_std_os, r=alexcrichton

Just opening a pull request for adding code examples and documentation to std::os.

More to come soon.