Fixed #21: Resolved logic error with repository path extraction and undefined variable.