Fix spec failed for windows path