Fix localhost tasks with complex executables

Enable the use of executable commands that use command line options with
the localhost command runner. These commands require parsing out the
base executable from the command string to pass to subprocess.
Merge pull request #6981 from aliles/fix-localhost-executable-with-flags

Fix localhost tasks with complex executables