spree/spree — comment on commit 7703529c91896494d4c76ada0e8da857fcd5ea06
File: core/lib/tasks/core.rake line 24
By joshnuss:

you can also use pathname to accomplish this, plus it eliminates the regex

```
dir = Pathname.new(args.dir)
dir = File.join(Rails.root, "db", dir) if dir.relative?
```