Better build-run script. Allows 'valgrind' param to execute valgrind, shifting the commands one time. Otherwise, executes with time command.