check for dirs and 0-size files when uploading gist