Dots in regexps should be escaped

It was catching wrong files, e.g. superb.png, so I fixed that.