Modify restore system script