Use subprocess for system calls, except on Windows/Cygwin.