fixes partial-patch make command by setting env with update()