handle the case of the rebuild where envs from previos install are brought in via custom_env as an array (not a hash)