Fix compatiblity issue between `looponfail` and editable installs.