[backend] do not leave a build.old directory behind