remove unneeded lines from rebuild script