Issue #3121616 by Neslee Canil Pinto: Replace deprecated method file_unmanaged_move and file_scan_directory