initial kyotocabinet implementation
phash: file conversion now finds a better backup name if fname.old exists.