fix incorrect absolute paths on windows

The path being created was \\C:\\foo\\bar\\baz.yml. Checking for a
unix-style / at the start is not the correct way to determine if a file
path is absolute.