Fix some warnings, move .ido.last into tmp