if we rebuild a package we need to update the hash in case it changed
do not die when installed.dat is not existing yet
do not complain when installed.dat does not exist yet