Various changes to get specs to pass on windows

* Fixed up cli_specs (there were some system dependent function calls that needed to be stubbed)
* Cookbook profiler git_specs needed some modifications to get them to work with cmd.exe (' -> ")
* Policy store_config_specs used File.expand_path, which is system dependent
* Comparing their SHAs was broken because windows decides to do magic unless you give it the b mode when writing files

cc @btm @danielsdeleo @adamedx 
expect worked before because the function was being called exactly once. I could have modified it to be expect with the number of calls expected, but it didn't feel like the right thing to do. It shouldn't matter if that function is called `n` number of times, the rest of the test should cover the case of it being used.