change dir_content function to ignore '.', '..' and emacs backup files