Expand format string when constructing package name