Try to make the RELATIVE_PATH_TO_TOPLEVEL macro robust for out-of-src-dir situations.