Ignore comments intelligently -- avoids problems when the file doesn't contain a single-line header