You can simplify this set of lines to:

```ruby
bin.install 'einstein'
(share/'einstein/res').install 'einstein.res'
```

These will create the directories for you.