change rebuild script permissions