cache: replace kern___getcwd with vn_getcwd
The previous routine was resulting in extra data copies most notably in linux_getcwd.