Fixing exclude_namespaces for nested namespaces

There's still a bug where it doesn't consider the entire nested namespace, but ignoring that for now.

See #82 for more detail.