Fix: env rules merging for command line config (fixes #1271)

If the command line config file specifies environments, their
rules are merged before the individual rules in the same file.
Merge pull request #1466 from jrvidal/master

Fix: env rules merging for command line config (fixes #1271)