Various improvements -- if nothing else the 'kmstest' utility now explains properly when permissions problem :).