Detect .dlls regardless of case

- Fixes #87.
- Includes tests.
- See individual commit descriptions for more info.