Updates path to main.