Modified to work better on Windows

Currently, yamlhead chokes on the initial "---" found in jekyll templates if they were created on Windows, since the newline character can be '\r\n'.

While I was at it, I updated the code to allow the jekyll leading "---" to have trailing whitespace as well.