Fix listFolderFiles() function to return array of files only