unix, windows: don't include null byte in uv_cwd size

Make it consistent with uv_exepath