If we automatically lookup the extension for a command and the user
has supplied an argument to that command we incorrectly stamp the NUL
byte after the extension, and not after the argument, thereby
effectively erasing the argument.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>