replace paths before buildcontrol