Properly ignore comments in ipkg files

Fixes #1149.

This replaces a hacky bad version from yesterday.