quick fix so module dependencies get automatically unloaded when doing "module unload"

I don't know if you are interested in this "feature". I do the PR just in case so you can decide about it

You can read details about this here:
https://github.com/hpcugent/easybuild-framework/issues/714#issuecomment-26036880