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