Move scripts to Rakefile