fix lazy check for build subdirectory warning

close #478