generate-emacs-packages: Add env-var to set cache-dir.

I'll use this to provide a mirror for old Emacs packages which.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>