runtime/qio: use getcwd instead of getwd

getwd is deprecated in favor of getcwd.

Related to #325.
I believe so.  We'd want a test for the error case (and it'd be good to see if ERANGE gives us a clear enough error message, or if we'd want to pretend it was an ENAMETOOLONG error)