Creating directories automatically.
Fixing environment variable writing.