cleaning up NewScripts directory
fixed deletion of files