Added optional flags to Dir.glob