changing environment sed replacement into argument to puppet facts