Fix bootstrap script when broken symlinks are present.