remove unnecessary change of directory