Support exclude_from_detect_dependencies. Fixes #81