Correcting bug where read-only/hidden files were causing errors during delete