fixed distmaker script for d6/d7