[Bug 627972] getcwd(2) returns bogus path