runtime/qio: use getcwd instead of getwd

getwd is deprecated in favor of getcwd.

Related to #325.
Should we have two versions of ``cwd`` then?

```
proc pwd(out err: syserr): string;
proc pwd(): string;
```