Fixed bug in the distro build