Drivers are facing a 30-mile diversion while the works are carried out near Cairnie.