Use regex to make sure scripts end with the right command