Updated Rakefile to v10 compatible