Basename helper function in misc.c, also capable of stripping extensions.
keystore2john: Use basename of filename for login field, and convert to
symlink to john.