Fix detect bundles in configuration - fixes #121

As spotted by @wcluijt the bundles are not detected correctly.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #121
| License       | MIT
| Doc PR        | N/A