Fix JAR post-processing during installation

This improves native code detection and Javapackages manifest
injection.