I'm not sure what I did, but when I ran this command in Cygwin shell instead, epubcheck said it worked.
$ zip -q0X rjpub.epub mimetype
$ zip -r9 rjpub.epub OEBPS META-INF
everything worked (for the time being at least). Not sure why.
Please note that I never modified the mimetype file at any point.