Remove unnecessary 'cd' commands