Fixed fcgid detection