Changed sh commands to fit windows ones.

Also added double quotes around rakefile path in case of path with a space in it. This corrects the #2 issue.