linkapps: overwrite broken app symlinks

See issue #22388.