[library] Fix containsInDiskCache(). Closes #9