modifications to file finding to ensure we can find files both from resources and the built jar