now correctly examines path for relative links

fixes regression recently introduced w/o breaking the fix it applied