Adding check for file vs folder

Script tends to break if the downloaded item is a single file. This
isn't usually an issue as long as proper Scene sources are used.