Implemented chorebox_getcwd() function.