added 'olddir' as parameter

olddir was missing, so I added it.