use /bin/sh instead of sh to run shell_code