Make sure task list is always a list.

Fix for the problem where the task is passed in as a String (e.g.. "db:reset") rather than an array.