Fix detection of file:// repositories