Epidemic threshold in directed networks