don't upload if there is nothing to upload

fix Ubuntu tar command line