Changed urlpath->new to urlpath->newFromModule. Also added check for when using the problem library, that the Library directory exists, and if not, try to fix it ourselves.
Changed paths: