respect flag for relative paths, fdo#79305

Change-Id: I8f4e5f8f5e489d543f81b0b20255c875b83f7afc
add test for fdo#79305

Change-Id: I498f272e9da8c5f988e0bf734ffcc1c04b528210