Conditional creation of zip file