Add small bugfixes for automated superuser creation