added missing local declarations in CommonHelpers.mkdirs