Use toLocal8Bit everywhere.
Externalize handling of environment variables.
Use own path as default.