Fix rake task dependencies