merge rename_packages and get_file_name_from_path into one line