[refactoring] Remove all trailing `/` for global var `DIR`
v2.3.0