Fix two off by one bugs breaking hardlinks in builds

for a link count of 2
Remember to actually install appdata.prov script

- Should've been in commit e6cadc6d5a1d2cf2c61c738808b5f2b212452148