Add io.findResource method

This method searches with the same machinery used for loading dynamic
modules, but finds a given import path as a real file, returning a
platform-dependent path to the resource.