menu.c: fix problems with trailing whitespace in actions