Update modules.php

Using JEventDispatcher instead of depreciated JDispatcher class