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 #212 from enyojs/ENYO-381-ryanjduffy

Fixes ENYO-381

Reviewed-By: Blake Stephens (blake.stephens@lge.com)
Integrated-By: Aaron Tam (aaron.tam@lge.com)