patches path modified to mach the current configuration