acpi: restructure genwakecode.sh