Fix replacing of build variables