Fix regression in rake task pattern option.

Fixes #1691.
Shellescape rake task patterns.