Fix 'kvlayer' command-line tool