runtime/qio: use getcwd instead of getwd

getwd is deprecated in favor of getcwd.

Related to #325.