correctly add target templates
make runtime jar and minimal runtime jar, improve manifests. Fixes #576