making mb_get_path support lists.