Fix help command

This fixes the help command, which also fixes other pre-commands and their execution.

@theneikos please review.