The nexuslua function currentdir returns the current directory path, appended with the platform-specific directory separator character.
print(currentdir()) -- /home/stefan/