Fixed issue using JDK 1.6: Unsign main jar before sign it again. Improved renaming to final name.