Remove wrong directory references.