Core: rewrite $HOME after dropping privs
Utils: PackedDigitRange __len__() breaks with open-ended ranges