Fix Gearfile location and working directory.