Fix callwithsudoifnecessary* for UID=0 and no sudo