rake task needs environment variables to be set

The rake tasks syntax doesn't work as proposed. Changed to environment variables.