Add environment to the default settings, fixes GH #650