Make sure environment variables are restored. Fix #180