Fixed env writing functions
Fixed env writing functions

cachethq/Cachet,sapk/Cachet,g-forks/Cachet,billmn/Cachet,bthiago/Cachet,h3zjp/Cachet,g-forks/Cachet,MatheusRV/Cachet-Sandstorm,h3zjp/Cachet,MicroWorldwide/Cachet,ZengineChris/Cachet,clbn/Cachet,NossaJureg/Cachet,coupej/Cachet,karaktaka/Cachet,bthiago/Cachet,elektropay/Cachet,karaktaka/Cachet,NossaJureg/Cachet,MatheusRV/Cachet-Sandstorm,billmn/Cachet,MatheusRV/Cachet-Sandstorm,sapk/Cachet,MatheusRV/Cachet-Sandstorm,clbn/Cachet,g-forks/Cachet,coupej/Cachet,ZengineChris/Cachet,MatheusRV/Cachet-Sandstorm,NossaJureg/Cachet,bthiago/Cachet,elektropay/Cachet,h3zjp/Cachet,cachethq/Cachet,sapk/Cachet,elektropay/Cachet,coupej/Cachet,billmn/Cachet,ZengineChris/Cachet,karaktaka/Cachet,MicroWorldwide/Cachet