Updated models_diagram.rb to support the detection of Engine based models that are located in nested directories in app/models.