Switch to stdlib subprocess for backward compatibility