Added more comprehensive build script