Added --when-file-exists=replace code to the feature manager to work around --accept licence issue