The issue is that the spark version, hadoop version, and shark version are now passed through template strings. Since the init scripts need to know what version they are, this needs to be called first. I couldn't think of a more elegant way to do this. Maybe we could call them twice?