bash get list of files in directory as array. dir name lists files and fo