EGL: Interpret relative ICD paths as relative to the JSON manifest

Previously, relative ICD paths were treated as being relative to the
current working directory, but this doesn't seem useful in practice:
EGL vendors cannot predict what the current working directory of EGL
applications is going to be.

Instead, interpret the path as being relative to the realpath() of the
JSON manifest describing the ICD.

Signed-off-by: Simon McVittie <>
Resolves: glvnd/libglvnd#190
12 jobs for relative-path in 4 minutes and 22 seconds (queued for 3 seconds)