fix for issue of having to run build command twice in windows