logic fixed for make distcheck