used variable instead of hardcoded olddir

Hi,
there was one place, where you used the hardcoded value instead of $olddir.