Fix repo handling for relative paths