Fixed mistake in rebuild script