fixing rakefile for cygwin compatibility

fixes #1571 for cygwin compatibility.