Fix regression in binary package installation

Pull #6461 caused a regression in which binary package installs of
64-bit packages broke on 64-bit systems. This commit fixes that
regression.