Fixed bug when excluding folders

Fixed bug when excluding folders from zip.