Add bash patch and system build script