added delTree function to recursively delete a directory from disk