base/filesystem: add getcwd/chdir