Add guard for build.head