updated cdl to make intermediate directories as well when checking