for URLResource do not try to find directory for certain pathnames

all the pathnames ending in ".rb", ".class", ".jar" assume they are
files and do no lookup directory info.