OSInst: fixed a regex and perms, cleaed comments