Directory change in lua lib