Fixed dirty revert_vm script

Change-Id: I37ddbb335be2fbbc81acaaab6bb101cfc589ac04