Add rebuild option for build script