handle empty upload dir
handle tar uploads, cleanup untar

seems to aleviate memory usage a bit