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.
Merge pull request #6576 from terminalmage/issue6563

Fix regression in binary package installation