Cleaner detection of bindings with better error handling.

Makes it a clearer when the bindings are found but broken.
Merge pull request #281 from djanowski/cleaner-binding-detection

Cleaner detection of bindings with better error handling.