chdir on work buffer