medium: scripts: don't modify system unless necessary (bnc#866569)