Use python-fedora for gravatar construction /cc @abadger.
Needed an extra int() cast in there.
Optimize by only checking for cache dir when necessary (--gource).
Typofix.
Got the order reversed.
Make gravatar cache directory configurable (--gource) /cc @abadger