Use re instead of shlex.split to find executable

shlex.split will strip quotes and it might not even be sh at this point.