See http://lmod.readthedocs.io/en/latest/300_tracking_module_usage.html for details.
