Improve detection missing WhatIf support

From output of Whatif-run, do not replace line break by space, as this breaks the match if the break was done within a word.
Refactored local_configuration_manager to use function to test for what-if support
Added spec to test a whatif expception with \r\n is corrrectly classified
Merge pull request #2264 from opscode/jdmundrawala/issue-2225

Improve detection missing WhatIf support