Fix exec bug

If one of the commands in the exec list contained ' -o ' in it, it would
confuse the exec parser. Update the regex to mandate that the -o
parameter must be right after 'exec'.