moved inherit_environment into environment.inherit, which makes so much more sense.
Besides, environment variables substitution was implemented, which fixes #15