Support Windows when not using backtick execution

Fixes https://github.com/jekyll/jekyll/issues/2556

/cc @piki
This will break on ruby 1.8