Make relative URLs work on Windows.

Minor fix. On Windows, relative paths were being generated with a leading "None" because of this bug.