Fix builtin cd for misc functions