Re-added recusrive flag to listFilesInDir()