make distcheck works for automated rebuilds