download externals: name by dirname if no basename in url