However, if we keep DIR, we must append the / as DIR does not contain a trailing slash, apart from when DIR is the root