Use `cd 'liblwgeom'` instead of `Dir.chdir`; just a style note.