Fix/init export env vars. Closes #195 and $139