And handle relative 'git+file:' flakerefs while we're at it (these crashed with an assertion failure). Fixes #12248.