fix directory-based bulk compilation