mescc: getcwd: Move to libc.