Fixed Command Executor when shell is false.

Review: https://reviews.apache.org/r/26622