Made rc useful in changeDir()