Use apply method to build PBS env.
Use apply method to build ssh env.