Tweaked relPath to ignore remote urls