improve consistency of %hash% repository template path expansion