In case a previous interrupted build left a garbage path laying around, remove it before trying to move the path to its final location. Fix #4858