Remove redundant cd.