fix #929 : `cd` in Rakefile in a cross-platform way