Make command string shorter for exec

When we have too many hosts, given command string becomes so long that
'exec' function cannot handle it properly. It's a little bit inefficient
but works correctly even if you have many(>1000) hosts, especially for
stacked grapher.
/bin/sh is better than /bin/bash