Use apply method to build glite env.