We should also use 
```ruby
::File.dirname(node['rs-base']['swap']['file'])
```
so the Chef File class doesn't get used.