ensure output names do not have extra $0 suffix