Changed the cacheBusting code so that it matches the code used elsewhere (or is as similar as possible) in response to comments by @neonstalwart.  Added a possible todo item.
Added comments to explain the logic here regarding the calculation of the dojo path.