added check on roc in detconfig, use shutil instead of cp