lua.wetgenes.path.currentdir
Get the current working directory, this requires lfs and if lfs is not available then it will return wpath.root this path will have a trailing separator so can be joined directly to a filename.
wpath.currentdir().."filename.ext"