Made the distribution work for unix-type platforms.