Fix accessing invalid repo path