Update to latest detect library

Fixes #3