Fixed package and build problems in Rakefile.