fix chown which included non existant dirs