Fix for using mongodb as a package.