improved environment variable resolution: environ definitions can refer to reviously defined variables