Add separate workpath from final output in resource.dat script.