Remove unnecessary directory change.