Properly fix up before-script