Fix for has_line

If file `foo` has following content

      foo bar\r\n 

then `has_line` wouldnt find `foo bar` in contents since there would be comparision: 

     `foo bar\n` == `foo bar`

I have hanged has_line to strip all whitespace from line using regex `\s+` (previously only spaces were stripped).