Replacing batch file with rake