Remove dependency on pcntl extension for testing