only prepend the relpath if necessary