fix for ClassPathResource that will not have getFile when inside a jar
allow running zookeeper mock with gradle