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).
Merge pull request #134 from rosswilson/master

Error when 'main' inside bower.json is an array