Use stream_resolve_include_path to detect files loaded from pear

Change-Id: I70c776d0ecb127a349a72402d1ef441a19ee96df