respect flag for relative paths, fdo#79305

Change-Id: I8f4e5f8f5e489d543f81b0b20255c875b83f7afc
Reviewed-on: https://gerrit.libreoffice.org/10407
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>