Fix publishing os scripted works in automated clean machines.