fix relative path issue: path in href must start with "/" in order not to be fetched relative to the current path
the relative path fix does not apply when checking file existence using os.path; fix this