[Bug 39419] Fix the 'Failure running script in VM' errors