used Dir.glob instead of forking ls