[BUGFIX] Fixing release id retrieval

The release id was retrieved too late which results in no upload package
being generated. The setup of the new release directory is now done
before compressing, this also leads to proper release id retrieval.