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.