addrepokey: use a temporary file instead of /dev/stdin
unpack also *.tar.gz, not only *.tgz

useful for cookbooks downloaded with

    knife cookbook site dowlnload foo