properly scope existence check for ilib

Issue: ENYO-381
Enyo-DCO-1.1-Signed-off-by: Ryan Duffy (ryan.duffy@lge.com)
Merge pull request #213 from enyojs/ENYO-381-ryanjduffy-master

Fixes ENYO-381 (master)

Integrated-By: Aaron Tam (aaron.tam@lge.com)