Added code to handle files that are set as read-only when deleting whole folders