Fix sudo/passwd for scripts