Fix Rakefile for production