Hi Yura,
You can change this to:

currentDirName=`pwd`

That will save the full current path to the variable