Ensure environment task is defined after sprockets
Clear rake tasks before redefining
No need to clear tasks

Partially revert 1db7aa07cd5bfe3f8ae967f2928a8392a98223bb
Merge pull request #195 from rails/redefine-rake-tasks

Rake Tasks always override existing ones