getwd moved to libc.a and error return changed