Little optimization in fm_folder_from_path_name().

Also update copyright messages in files headers.