Core: rename is_valid_module() to _is_valid_module()

This aims to standardize the mph internal function naming.