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

see middleman/middleman#929