Fix rake tasks for production