Fix some problems with build ID detection on Windows.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>