added system_getcwd