Fixed file renaming bug in product env