corrected listFiles() to also show directories