Changed all other scripts to use the new deleteDir, and removed compilation warning due to untype e in catch clause in all scripts.