change environment setting method to simply echoing the right file to stdout, and piping it into bash