Fixed performance scripts to only run when from the CLI