bugfix: filter out redundant JARs properly

Fixed an issue where we did not filter out provided jars from the classpath and set of files uploaded