Fixed classpath resource bug that occurs when running application as a JAR