expand PATH variables and change append_to to prepend_to