Rakefile: reorganizing gating