Make poltergeist dependency optional