g_sorcery/fileutils: different fixes