Fix deprecation warning in rake