Made update_results more cross-platform by using env