added code to report nil lfs.currentdir()