Add source directory building check.