Fix ACPI event scripts' path.
Factor out DEBUG trap.
Merge needed commands' check into one.
Set trapping up after refactor.
ACPI event scripts simplification.
Duplex functions (ie. through pipes) refactoring.