Style nit: use `cd` instead of `Dir.chdir`