Fix path.basename variable refernce

Missed a rename.