Issue #3242202: Fix by checking if shell_exec is not in the disable_functions list and use the Drupal file system service to manage copy or removal of files
Closes #3242202