This commit fixes a problem with GetLastEntry: entries[-1] was being set
to folder "corpus" in model path, rather than "entry-X". Now we first
list the folders beginning with "entry-", and sort them to pick the
latest.