Fix regexps for reading profile