Better way to make sure modules are installed first