getJarFolder method fixed again to work inside jar files