Replace g_strdup_printf with g_build_filename where possible