build: fix removing of reghack in apply_wifi_reghack()