move get_extensions, download_extension, build_extensions_list functions to download-directory extension