src: adapt to API change in uv_cwd

This patch is required after libuv is updated in master.