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 
Why the switch from `expect` to `allow`?  I always prefer more explicit tests.

But if it is the correct change, the `allow` duplicated in many tests could be moved into the `before` block.