Power Query in Sharepoint drive?

IT moved out accounting drive from a serve to the sharepoint/the cloud. This broke all of our file references for power query and direct references in excel formulas. Is there anyway to fix this without rewriting all of the power query and excel formulas?