Fixed a bug in the getEntryPaths() enumeration that could lead to a string index out of bounds exception.