Use g_build_filename() to fix the case of adding the root directory.