Fix chomp with non-prefix repos

Prior to this commit we chomped and that caused a trace due to the
command returning an nothing, this now returns an empty