Fixes bug when loading distribute from tarball.