Dependency modifier

`get()` needs to be able to call itself. I can either call `getDependencies()` again, but then would have the pass `enabledModules` each time. By putting this into an anonymous function I simplify the recursive code