Add filter to only allow jars to be loaded

As requested by @luacs1998