Lowercase all resources in book.resources

This is not following the standard strictly, but since some books are
produced with filename case-issues, this fix is sadly necessary. It's very
unlikely that two files with the same filename but different casing will
occur.

Fixes #561, #580