Add dependency checking for bytecode caching, fixes #44.