Fixed I/O error when listing directory; disabled debugging messages