Try another way to use subprocess; previous breaks on Linux.