Remove unused variable in GetDirectory()