Trim commands in ExecTasks.

Trailing or leading whitespaces in commands
cause them to fail. For example "ls  " is an
invalid command.