Steve McClaren says Derby County had the right to sack him last year, and he feels lucky to have been given the chance to return to the club.