Add --replace option to set.

Only try to replace old license with the new one if it is asked for
by specifying the "--replace" option.