check to prevent multiple copies of the same dist