fix sys_getcwd