rakefile: update ruby only extension check