scripts/suspend: fix broken while/switch syntax