A version of popen that doesn't spawn processes using /bin/sh