fixed substring error when the JAR entry is the WEB_JAR_PREFIX