#1039: Check for composer.json either at the Drupal root, or inside the core directory.  We can refine this test once it has been clearly decided which directories should have composer.json.