Fix paths for backup and restore with new target build dirs.