Remove unnecessary cd