Handle filename in 'ls' command