Update JarCommand to only include nested libraries that are actually zip files. Similar to commit 38585bf3 which introduced the same functionality to the Repackager. Fixes gh-2094