Move scripts to Rakefile tasks