Adds support for detecting egret.
Merge pull request #4 from dumganhar/master

Adds support for detecting egret.