Changed the rake task to use rake's own sh command, instead of
Kernel.system

Hopefully this way it will work better with other tasks and return a
valid status code