ADD cross-platform support for shell execute with spaces bugs fixed.

Signed-off-by: Richard Lea <chigix@zoho.com>