Switch to posix_spawnp() instead of posix_spawn().