correct assignment of the relativePath of detectorData
Upgrade writeZipArchive function:

 - adding error handling routines
 - make it working in Windows and Linux
Merge pull request #49 from lekomin/devel

Related with writeZipArchive function