msi: Only specifically resolve the TARGETDIR directory once.