Remove redundant cd