app: use g_file_query_file_type() to check for the GIMP directory