When a bower.json file is found where the 'main' attribute is an array, we should be comparing the extension of the logicalPath and not the extension of the bower.json file (always .json).