Fix deeply namespaced resource modules

Allows for deeply nested modules / classes as resources.

```ruby
resource :project, class_name: 'Acme::Resources::Project'
```

now works