Fixes broken backwards compatibility of multiple pre commands.

Option `pre` accepts array, in which the commands are executed in sequence.