This should be  (mind the quotes)
```ruby
      args += ["--define", "dist .#{dist}"]
```