Check that the script is run correctly