hostname: minor changes in restore script