You could use `File.join` and avoid this.

```ruby
1.9.3-p327 :007 > File.join('blah', 'foo')
 => "blah/foo"
1.9.3-p327 :005 > File.join('blah', '/foo')
 => "blah/foo"
```