modify Rakefile to remove deprecation warnings with rake version > 10.0