Replace deprecated g_basename with g_path_get_basename.
Merge pull request #44 from dajohi/g_basename

Replace deprecated g_basename with g_path_get_basename.