Fix so it works when given repo path is relative