Refactor fs.cwd to use uv_buf_t