std::os: Add get_path_env()

This primary motivation is that there was no easy way to get list of
paths from `getenv("PATH")`, because it requires to split string with
os-depdent separator.
rustc also did same work for `RUST_PATH`, so this patch moves the
portion into std::os for public use.