Set environment via text file. fixes #35