OPAL-1564: File format is xml, opal creates the directory only if the output file format is CSV (was always creating a folder before)
OPAL-1564: Keep rewriting the extension for zip file format
Merge pull request #26 from emorency/master

Check for file format .xml and create a new folder only if the output file format is CSV