Fix Rakefile for packaging