fixed bug in cmd_updt(). Modified path cleaning and substituted C:\windows literals for C:\Windows