The variable "resourceUrl" was always used in a single branch but set for all branches before. To ease maintenance and simplify comprehension, it was removed.
In essence, this change renames "version_dir" to "version_segment" as well as "versionDir" to "versionSegment" to reflect the fact, that this variable does not denote a directory, but a part of the path appended to path "resourceDir".