Make compatible with calibre >=0.9.17

There seems to have been a change in calibre v0.9.17 that broke
compatibility with calibre recipes
Merge pull request #2 from jerrykan/0.9.17_compatibility

Make compatible with calibre >=0.9.17

Thanks to jerrykan for this fix!