Correct the exit code of the command line scripts