Fix chdir in Rakefile