Replace Rakefile with bash script