bin/prepare: Define "dist" macro explicitly on el5