netbsd and rump getcwd fixes