robust deploy_cp file exclusion