remove extra dot in --dist option when building