Modify rakefile to better encapsulate windows tasks.