Only lines starting with a # should be treated as comments, fixes #3066