Updated resource handling so that exportable, runnable jars now work.