Add build script guards