Merge multiple data into a single JSON file or Grunt config, based on their basename