Support comments in ioctl records

Lines starting with '#' and empty lines get ignored.