I did a version 0.40 since I fixed the bug with TOC links. Available at
https://dev.mobileread.com/trac/mobiperl/
Changes from 0.39 are:
- --removejavascript flag added to html2mobi
- XML::Parser::Lite::Tree have changed tag field to element. Fix for this.
- opf2mobi: Now works with filename containing directory path.
- Fixed bug in html2mobi and collections. Now links should be generated and --gentoc should work.