Adjust module insert trigger to include the legacy compat logic. Addresses Connexions/cnx-publishing#17