fix bug in case object is not promise but have promise property
fix distribution files
Merge pull request #51 from ygalbel/master

fix bug in case object is not promise but have promise property