Fix warning detection regex (fixes #275)