Mark a folder as an order-only dependency

Review 1751 by @larkost
Closes #2666