Fixes build number issue in jenkins and hopefully fixes duplicate jars

Thanks to sct for the fix ;)