Bundles: Fix bundle files containing ".bundle"

Handle nested extensions properly.

Fixes #386
Merge pull request #390 from SLaks/jshint-ignore-fixes

Bundles: Fix bundle files containing ".bundle"