Move scripts to rakefile