Fix the set environment function to account for chef being "special"