Fixed distribution module so that it works in the release process