Fix issue that filename cannot be COM1~COM9 under widnows