This can be rewrittern as `Dir.glob('/var/lib/alternatives/*')`; that way you don't have to explicitly reject `.` and `..`