job environ: replace []string by map[string]interface{}

Fixes #3227 
Fixes #2826

ping @shykes