Fixes rakefile for production