Add userspace config.h handling to build script (#2640)